package com.atguigu.mq.listener;


import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;

import java.io.UnsupportedEncodingException;

public class FunoutListener implements MessageListener {
    @Override
    public void onMessage(Message message) {
        try {
            String result=new String(message.getBody(),"utf-8");
            System.out.println("FunoutListener1"+result);
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
    }
}
